﻿using DAO;
using DTO;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL
{
    public class CauThu_BLL
    {
        //Lấy danh sách
        public static DataTable SelectAll()
        {
            return DAO.CauThu_DAO.SelectAll();
        }
        public static DataTable SelectTopScores()
        {
            return DAO.CauThu_DAO.SelectTopScores();
        }
        public static DataTable SelectTenbyDoiBong(int id)
        {
            return CauThu_DAO.SelectTenbyDoiBong(id);
        }
        public static DataTable SelectbyDoiBong(int id)
        {
            return CauThu_DAO.SelectbyDoiBong(id);
        }
        public static CauThu_DTO SelectByID(int id)
        {
            return CauThu_DAO.SelectByID(id);
        }
        public static DataTable SelectByTen(string ten)
        {
            return CauThu_DAO.SelectByTen(ten);
        }
        public static DataTable SelectbyTenAndDoiBong(string ten, int maDoiBong)
        {
            return CauThu_DAO.SelectbyTenAndDoiBong(ten, maDoiBong);
        }
        public static DataTable SelectbyTenSoAoAndDoiBong(string ten, int id, int soao)
        {
            return CauThu_DAO.SelectbyTenSoAoAndDoiBong(ten, id, soao);
        }
        public static DataTable SelectbySoAoAndDoiBong(int id, int soao)
        {
            return CauThu_DAO.SelectbySoAoAndDoiBong(id, soao);
        }
        public static void Insert(CauThu_DTO dto)
        {
            CauThu_DAO.Insert(dto);
        }
        public static void Update(CauThu_DTO dto)
        {
            CauThu_DAO.Update(dto);
        }
        public static void Delete(int ma)
        {
            CauThu_DAO.Delete(ma);
        }
        public static void DeleteByDoiBong(int ma)
        {
            CauThu_DAO.DeleteByDoiBong(ma);
        }
    }
}
